import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router";
import layout from "../layout/index.vue";
const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "login",
    component: () => import("@/views/login_page/index.vue"),
  },
  {
    path: "/home",
    name: "one",
    redirect: "/home",
    component: layout,
    children: [
      {
        path: "/home",
        name: "home",
        component: () => import("../views/HomeView.vue"),
      },
      {
        path: "/about",
        name: "about",
        component: () => import("../views/AboutView.vue"),
      },
      {
        path: "/dboul",
        name: "dboul",
        component: () => import("../views/liaotian/dboul.vue"),
      },
    ],
  },
  
];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;
